﻿<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>half3 结构
 | Fantasy.Net API Reference </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="half3 结构
 | Fantasy.Net API Reference ">
      
      <link rel="icon" href="../favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
  </head>

  <script type="module">
    import options from './../public/main.js'
    import { init } from './../public/docfx.min.js'
    init(options)
  </script>

  <script>
    const theme = localStorage.getItem('theme') || 'auto'
    document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
  </script>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../logo.svg" alt="Fantasy.Net">
            Fantasy.Net
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled="" placeholder="搜索" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Unity.Mathematics.half3">



  <h1 id="Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3" class="text-break">
    half3 结构
  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>命名空间</dt><dd><a class="xref" href="Unity.html">Unity</a>.<a class="xref" href="Unity.Mathematics.html">Mathematics</a></dd></dl>
  <dl><dt>程序集</dt><dd>Fantasy.Net.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>A 3 component vector of halfs.</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct half3 : IEquatable&lt;half3&gt;, IFormattable</code></pre>
  </div>





  <dl class="typelist implements">
    <dt>实现</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="Unity.Mathematics.half3.html">half3</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformattable">IFormattable</a></div>
    </dd>
  </dl>


  <dl class="typelist derived">
    <dt>继承成员</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
  </dd></dl>

  <dl class="typelist extensionMethods">
    <dt>扩展方法</dt>
    <dd>
  <div>
      <a class="xref" href="Fantasy.Helper.JsonHelper.html#Fantasy_Helper_JsonHelper_ToJson__1___0_">JsonHelper.ToJson&lt;T&gt;(T)</a>
  </div>
  </dd></dl>





  <h2 class="section" id="constructors">构造函数
</h2>


  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_System_Double_" data-uid="Unity.Mathematics.half3.#ctor(System.Double)">
  half3(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a single double value by converting it to half and assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(double v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>double to convert to half3</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_System_Single_" data-uid="Unity.Mathematics.half3.#ctor(System.Single)">
  half3(float)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a single float value by converting it to half and assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(float v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></dt>
    <dd><p>float to convert to half3</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_double3_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.double3)">
  half3(double3)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a double3 vector by componentwise conversion.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(double3 v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.double3.html">double3</a></dt>
    <dd><p>double3 to convert to half3</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_float3_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.float3)">
  half3(float3)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a float3 vector by componentwise conversion.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(float3 v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.float3.html">float3</a></dt>
    <dd><p>float3 to convert to half3</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_half_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.half)">
  half3(half)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a single half value by assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(half v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>half to convert to half3</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_half_Unity_Mathematics_half_Unity_Mathematics_half_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.half,Unity.Mathematics.half,Unity.Mathematics.half)">
  half3(half, half, half)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from three half values.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(half x, half y, half z)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>x</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>The constructed vector's x component will be set to this value.</p>
</dd>
    <dt><code>y</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>The constructed vector's y component will be set to this value.</p>
</dd>
    <dt><code>z</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>The constructed vector's z component will be set to this value.</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_half_Unity_Mathematics_half2_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.half,Unity.Mathematics.half2)">
  half3(half, half2)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a half value and a half2 vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(half x, half2 yz)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>x</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>The constructed vector's x component will be set to this value.</p>
</dd>
    <dt><code>yz</code> <a class="xref" href="Unity.Mathematics.half2.html">half2</a></dt>
    <dd><p>The constructed vector's yz components will be set to this value.</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_half2_Unity_Mathematics_half_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.half2,Unity.Mathematics.half)">
  half3(half2, half)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a half2 vector and a half value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(half2 xy, half z)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>xy</code> <a class="xref" href="Unity.Mathematics.half2.html">half2</a></dt>
    <dd><p>The constructed vector's xy components will be set to this value.</p>
</dd>
    <dt><code>z</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>The constructed vector's z component will be set to this value.</p>
</dd>
  </dl>












  <a id="Unity_Mathematics_half3__ctor_" data-uid="Unity.Mathematics.half3.#ctor*"></a>

  <h3 id="Unity_Mathematics_half3__ctor_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.#ctor(Unity.Mathematics.half3)">
  half3(half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Constructs a half3 vector from a half3 vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half3(half3 xyz)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>xyz</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>The constructed vector's xyz components will be set to this value.</p>
</dd>
  </dl>












  <h2 class="section" id="fields">字段
</h2>



  <h3 id="Unity_Mathematics_half3_x" data-uid="Unity.Mathematics.half3.x">
  x
  
  </h3>

  <div class="markdown level1 summary"><p>x component of the vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half x</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Unity_Mathematics_half3_y" data-uid="Unity.Mathematics.half3.y">
  y
  
  </h3>

  <div class="markdown level1 summary"><p>y component of the vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half y</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Unity_Mathematics_half3_z" data-uid="Unity.Mathematics.half3.z">
  z
  
  </h3>

  <div class="markdown level1 summary"><p>z component of the vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half z</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Unity_Mathematics_half3_zero" data-uid="Unity.Mathematics.half3.zero">
  zero
  
  </h3>

  <div class="markdown level1 summary"><p>half3 zero value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static readonly half3 zero</code></pre>
  </div>




  <h4 class="section">字段值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd></dd>
  </dl>









  <h2 class="section" id="properties">属性
</h2>


  <a id="Unity_Mathematics_half3_Item_" data-uid="Unity.Mathematics.half3.Item*"></a>

  <h3 id="Unity_Mathematics_half3_Item_System_Int32_" data-uid="Unity.Mathematics.half3.Item(System.Int32)">
  this[int]
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the half element at a specified index.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public half this[int index] { get; set; }</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>index</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>




  <h4 class="section">属性值</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd></dd>
  </dl>








  <h2 class="section" id="methods">方法
</h2>


  <a id="Unity_Mathematics_half3_Equals_" data-uid="Unity.Mathematics.half3.Equals*"></a>

  <h3 id="Unity_Mathematics_half3_Equals_System_Object_" data-uid="Unity.Mathematics.half3.Equals(System.Object)">
  Equals(object)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns true if the half3 is equal to a given half3, false otherwise.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override bool Equals(object o)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>o</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
    <dd><p>Right hand side argument to compare equality with.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>The result of the equality comparison.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_Equals_" data-uid="Unity.Mathematics.half3.Equals*"></a>

  <h3 id="Unity_Mathematics_half3_Equals_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.Equals(Unity.Mathematics.half3)">
  Equals(half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns true if the half3 is equal to a given half3, false otherwise.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Equals(half3 rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Right hand side argument to compare equality with.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>The result of the equality comparison.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_GetHashCode_" data-uid="Unity.Mathematics.half3.GetHashCode*"></a>

  <h3 id="Unity_Mathematics_half3_GetHashCode" data-uid="Unity.Mathematics.half3.GetHashCode">
  GetHashCode()
  
  </h3>

  <div class="markdown level1 summary"><p>Returns a hash code for the half3.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  </div>


  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The computed hash code.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_ToString_" data-uid="Unity.Mathematics.half3.ToString*"></a>

  <h3 id="Unity_Mathematics_half3_ToString" data-uid="Unity.Mathematics.half3.ToString">
  ToString()
  
  </h3>

  <div class="markdown level1 summary"><p>Returns a string representation of the half3.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  </div>


  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>String representation of the value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_ToString_" data-uid="Unity.Mathematics.half3.ToString*"></a>

  <h3 id="Unity_Mathematics_half3_ToString_System_String_System_IFormatProvider_" data-uid="Unity.Mathematics.half3.ToString(System.String,System.IFormatProvider)">
  ToString(string, IFormatProvider)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns a string representation of the half3 using a specified format and culture-specific format information.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ToString(string format, IFormatProvider formatProvider)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Format string to use during string formatting.</p>
</dd>
    <dt><code>formatProvider</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></dt>
    <dd><p>Format provider to use during string formatting.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>String representation of the value.</p>
</dd>
  </dl>











  <h2 class="section" id="operators">运算符
</h2>


  <a id="Unity_Mathematics_half3_op_Equality_" data-uid="Unity.Mathematics.half3.op_Equality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Equality_Unity_Mathematics_half_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.op_Equality(Unity.Mathematics.half,Unity.Mathematics.half3)">
  operator ==(half, half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise equality operation on a half value and a half3 vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator ==(half lhs, half3 rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>Left hand side half to use to compute componentwise equality.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Right hand side half3 to use to compute componentwise equality.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise equality.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Equality_" data-uid="Unity.Mathematics.half3.op_Equality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Equality_Unity_Mathematics_half3_Unity_Mathematics_half_" data-uid="Unity.Mathematics.half3.op_Equality(Unity.Mathematics.half3,Unity.Mathematics.half)">
  operator ==(half3, half)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise equality operation on a half3 vector and a half value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator ==(half3 lhs, half rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Left hand side half3 to use to compute componentwise equality.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>Right hand side half to use to compute componentwise equality.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise equality.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Equality_" data-uid="Unity.Mathematics.half3.op_Equality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Equality_Unity_Mathematics_half3_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.op_Equality(Unity.Mathematics.half3,Unity.Mathematics.half3)">
  operator ==(half3, half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise equality operation on two half3 vectors.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator ==(half3 lhs, half3 rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Left hand side half3 to use to compute componentwise equality.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Right hand side half3 to use to compute componentwise equality.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise equality.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Explicit_" data-uid="Unity.Mathematics.half3.op_Explicit*"></a>

  <h3 id="Unity_Mathematics_half3_op_Explicit_System_Double__Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3.op_Explicit(System.Double)~Unity.Mathematics.half3">
  explicit operator half3(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Explicitly converts a single double value to a half3 vector by converting it to half and assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static explicit operator half3(double v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>double to convert to half3</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Converted value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Explicit_" data-uid="Unity.Mathematics.half3.op_Explicit*"></a>

  <h3 id="Unity_Mathematics_half3_op_Explicit_System_Single__Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3.op_Explicit(System.Single)~Unity.Mathematics.half3">
  explicit operator half3(float)
  
  </h3>

  <div class="markdown level1 summary"><p>Explicitly converts a single float value to a half3 vector by converting it to half and assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static explicit operator half3(float v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></dt>
    <dd><p>float to convert to half3</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Converted value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Explicit_" data-uid="Unity.Mathematics.half3.op_Explicit*"></a>

  <h3 id="Unity_Mathematics_half3_op_Explicit_Unity_Mathematics_double3__Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3.op_Explicit(Unity.Mathematics.double3)~Unity.Mathematics.half3">
  explicit operator half3(double3)
  
  </h3>

  <div class="markdown level1 summary"><p>Explicitly converts a double3 vector to a half3 vector by componentwise conversion.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static explicit operator half3(double3 v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.double3.html">double3</a></dt>
    <dd><p>double3 to convert to half3</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Converted value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Explicit_" data-uid="Unity.Mathematics.half3.op_Explicit*"></a>

  <h3 id="Unity_Mathematics_half3_op_Explicit_Unity_Mathematics_float3__Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3.op_Explicit(Unity.Mathematics.float3)~Unity.Mathematics.half3">
  explicit operator half3(float3)
  
  </h3>

  <div class="markdown level1 summary"><p>Explicitly converts a float3 vector to a half3 vector by componentwise conversion.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static explicit operator half3(float3 v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.float3.html">float3</a></dt>
    <dd><p>float3 to convert to half3</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Converted value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Implicit_" data-uid="Unity.Mathematics.half3.op_Implicit*"></a>

  <h3 id="Unity_Mathematics_half3_op_Implicit_Unity_Mathematics_half__Unity_Mathematics_half3" data-uid="Unity.Mathematics.half3.op_Implicit(Unity.Mathematics.half)~Unity.Mathematics.half3">
  implicit operator half3(half)
  
  </h3>

  <div class="markdown level1 summary"><p>Implicitly converts a single half value to a half3 vector by assigning it to every component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static implicit operator half3(half v)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>half to convert to half3</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Converted value.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Inequality_" data-uid="Unity.Mathematics.half3.op_Inequality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Inequality_Unity_Mathematics_half_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.op_Inequality(Unity.Mathematics.half,Unity.Mathematics.half3)">
  operator !=(half, half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise not equal operation on a half value and a half3 vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator !=(half lhs, half3 rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>Left hand side half to use to compute componentwise not equal.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Right hand side half3 to use to compute componentwise not equal.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise not equal.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Inequality_" data-uid="Unity.Mathematics.half3.op_Inequality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Inequality_Unity_Mathematics_half3_Unity_Mathematics_half_" data-uid="Unity.Mathematics.half3.op_Inequality(Unity.Mathematics.half3,Unity.Mathematics.half)">
  operator !=(half3, half)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise not equal operation on a half3 vector and a half value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator !=(half3 lhs, half rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Left hand side half3 to use to compute componentwise not equal.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half.html">half</a></dt>
    <dd><p>Right hand side half to use to compute componentwise not equal.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise not equal.</p>
</dd>
  </dl>











  <a id="Unity_Mathematics_half3_op_Inequality_" data-uid="Unity.Mathematics.half3.op_Inequality*"></a>

  <h3 id="Unity_Mathematics_half3_op_Inequality_Unity_Mathematics_half3_Unity_Mathematics_half3_" data-uid="Unity.Mathematics.half3.op_Inequality(Unity.Mathematics.half3,Unity.Mathematics.half3)">
  operator !=(half3, half3)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns the result of a componentwise not equal operation on two half3 vectors.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool3 operator !=(half3 lhs, half3 rhs)</code></pre>
  </div>

  <h4 class="section">参数</h4>
  <dl class="parameters">
    <dt><code>lhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Left hand side half3 to use to compute componentwise not equal.</p>
</dd>
    <dt><code>rhs</code> <a class="xref" href="Unity.Mathematics.half3.html">half3</a></dt>
    <dd><p>Right hand side half3 to use to compute componentwise not equal.</p>
</dd>
  </dl>

  <h4 class="section">返回</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Unity.Mathematics.bool3.html">bool3</a></dt>
    <dd><p>bool3 result of the componentwise not equal.</p>
</dd>
  </dl>












</article>


        
      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top">
      <div class="container-xxl">
        <div class="flex-fill">
          <span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
        </div>
      </div>
    </footer>
  </body>
</html>